package com.cn.yygh.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@MapperScan("com.cn.yygh.hosp.mapper")
@ComponentScan(basePackages = {"com.cn"})
@Configuration
public class HospitalsetConfig {

    //分页插件
    @Bean
 public   PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
